import { http } from '@/utils/http'
import type { LoginType } from '@/types/login'
// 登录接口
export const getLoginAPI = (code: string, encryptedData: string, iv: string) => {
  return http<LoginType>({
    url: '/login/wxMin',
    method: 'POST',
    data: {
      code,
      encryptedData,
      iv,
    },
  })
}
// 模拟登录接口
export const getMockLoginAPI = (phoneNumber: string) => {
  return http<LoginType>({
    url: '/login/wxMin/simple',
    method: 'POST',
    data: {
      phoneNumber,
    },
  })
}
